﻿#pragma once
#include <iostream>

using namespace std;

#define DATA_MAX_SIZE 64

class Node {
	public:
		char data[DATA_MAX_SIZE]; // data
		int data_size;		//data size.
		Node* next; // pointer to next
};
	
class Queue 
{
	public:
		Queue();// constructor
		~Queue();// destructor
		bool IsEmpty(void);
		void Enqueue(const char* x, int size);
		int Dequeue(char* x, int leng);

	private:
		Node* front;// front index
		Node* rear;// rear index
		int counter;// number of elements
};




